package com.wq.gof.designer.state;

import java.util.List;

/**
 * @Author: wangqiang20995
 * @Date:2019/1/28
 * @Description:
 * @Resource:
 */
public class HighLevel extends AbstractLevel {

    private static final Integer CURRENT_LEVEL = 3;

    public HighLevel(UserRule userRule){
        super(userRule);
    }
    @Override
    protected List<String> showLevelPriority(UserVo userVo) {
        if(!CURRENT_LEVEL.equals(userVo.getLevel())){
            throw new IllegalStateException("没有合适等级的业务");
        }

        List<String> list = getPriorities();
        list.add("光速下载");
        list.add("10T云存储空间");
        list.add("钛合金装备");
        list.add("360°无死角播放");

        return getPriorities();
    }

    @Override
    protected Integer currentLevel() {
        return CURRENT_LEVEL;
    }
}
